function showRangeRuler(xvalf,xvalt) {
	$("#range").ionRangeSlider({
    	type: "double",
        grid: true,
        grid_num: 1,
        step: 1,
        from: (xvalf!='')?xvalf:0,
        to: (xvalt!='')?xvalt:19,
        hide_min_max: true,
        values: [
            "1心", "2心", "3心", "4心", "5心",
			"1钻", "2钻", "3钻", "4钻", "5钻",
            "1皇冠", "2皇冠", "3皇冠", "4皇冠", "5皇冠",
            "1金冠", "2金冠", "3金冠", "4金冠", "5金冠"
        ],
        /*b_values: [
            "钻<img src=\"../images/s_blue.png\">", "", "", "", "",
            "皇冠<img src=\"../images/s_cap.png\">", "", "", "", "",
            "金冠<img src=\"../images/b_cap.png\">", "", "", "", ""
        ],*/
        onFinish: function (data) {
        	var fval = data.from;
        	var tval = data.to;
            console.log(fval);
            console.log(tval);
            $('#xyfrom').val(fval);
            $('#ixyto').val(tval);
        }
    });
}
function caseRuler(casev) {
	var cres = "";
	switch (casev) {
		case "0":
			cres = "1心";
			break;
		case "1":
			cres = "2心";
			break;
		case "2":
			cres = "3心";
			break;
		case "3":
			cres = "4心";
			break;
		case "4":
			cres = "5心";
			break;
		case "5":
			cres = "1钻";
			break;
		case "6":
			cres = "2钻";
			break;
		case "7":
			cres = "3钻";
			break;
		case "8":
			cres = "4钻";
			break;
		case "9":
			cres = "5钻";
			break;
		case "10":
			cres = "1皇冠";
			break;
		case "11":
			cres = "2皇冠";
			break;
		case "12":
			cres = "3皇冠";
			break;
		case "13":
			cres = "4皇冠";
			break;
		case "14":
			cres = "5皇冠";
			break;
		case "15":
			cres = "1金冠";
			break;
		case "16":
			cres = "2金冠";
			break;
		case "17":
			cres = "3金冠";
			break;
		case "18":
			cres = "4金冠";
			break;
		case "19":
			cres = "5金冠";
			break;
	}
	return cres;
}
